-- GENERATED SPELL FOR [Magister Idonis] --


function spell0_16204(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16204', 3000, 1)
end

function Sorts_16204(pUnit, Event)
local choix_sorts_16204 = math.random(0, 0)
if choix_sorts_16204 == 0 then
pUnit:RegisterEvent('spell0_16204', 1, 1)
end
end

function mob16204_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16204', math.random(1500, 3000), 1)
end

function mob16204_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16204_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16204_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16204, 1, 'mob16204_Action')
RegisterUnitEvent(16204, 2, 'mob16204_Leave')
RegisterUnitEvent(16204, 3, 'mob16204_Kill')
RegisterUnitEvent(16204, 4, 'mob16204_Die')
